#include<bits/stdc++.h>
using namespace std;
int main()
{
	string s;
	while(cin>>s && s != "\n")
		cout<<s<<" ";
    return 0;
}

